package ModelLayer;

public class SaleLine {
	private Sale sale;
	private Service service;
	private int quantity;
	private double price;

	public SaleLine() {

	}

	public SaleLine(Sale sale, Service service, int quantity) {
		this.sale = sale;
		this.service = service;
		this.quantity = quantity;
	}

	public void getTotalPrice() {
		setPrice(service.getPrice() * quantity);
	}

	public Sale getSale() {
		return sale;
	}

	public void setSale(Sale sale) {
		this.sale = sale;
	}

	public Service getService() {
		return service;
	}

	public void setService(Service service) {
		this.service = service;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

}
